package Day08;

import java.util.Scanner;

public class DemoStringBuilder4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s=sc.nextLine();
        String s1=fanz(s);
        System.out.println(s1);
    }
    public static String fanz(String s){
        return new StringBuilder(s).reverse().toString();
    }
}
